package com.etalk.crm.client.interfaces;

import com.etalk.crm.client.fallbacks.AppClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Jordan
 */
@FeignClient(name="${feign.client.app.name}",url = "${feign.client.app.url}",fallback= AppClientHystrix.class)
public interface AppClient {

	/** 推送通知给中科，告知课程需同步
	 * @param tokenString 老师登录名
	 * @return 结果
	 */
	@PostMapping(value = "/zhongke/push/course")
	String pushCourseByZhongke(@RequestParam("tokenString") String tokenString);

}
